﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="NoiDungSanPham.ascx.cs" Inherits="WebDemo_ADO.WUC.NoiDungSanPham" %>
<style type="text/css">
    .auto-style1
    {
        width: 100%;
    }
</style>
<asp:DataList ID="datalistSanPham" runat="server" DataSourceID="ObjectDataSource1" BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical" RepeatColumns="2">
    <AlternatingItemStyle BackColor="#DCDCDC" />
    <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
    <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
    <ItemStyle BackColor="#EEEEEE" ForeColor="Black" />
    <ItemTemplate>
        <table class="auto-style1">
            <tr>
                <td colspan="5">&nbsp;</td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td rowspan="5">
                    <asp:Image ID="Image2" runat="server" ImageUrl='<%# Eval("HinhAnh","~/img/{0}") %>' />
                    <%-- <%# Eval("HinhAnh") %>  '~/Images/shoppingcart.png' />--%>
                </td>
                <td>&nbsp;</td>
                <td>Mã sản phẩm</td>
                <td>
                    <asp:Label ID="lblMaSP" runat="server" Text='<%# Eval("MaSP") %>'></asp:Label>
                </td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>Tên sản phẩm</td>
                <td>
                    <asp:Label ID="Label2" runat="server" Text='<%# Eval("TenSP") %>'></asp:Label>
                </td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>Giá</td>
                <td>
                    <asp:Label ID="Label3" runat="server" Text='<%# Eval("Gia") %>'></asp:Label>
                </td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>Số lượng</td>
                <td>
                    <asp:Label ID="Label4" runat="server" Text='<%# Eval("SL") %>'></asp:Label>
                </td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>
                    <%-- <asp:Image ID="imgGioHang" runat="server" ImageUrl='<%# Eval("MaSP") %>' />--%>
                    <asp:ImageButton ID="imgGioHang" runat="server" ImageUrl="~/img/shoppingcart.png" OnClick="imgGioHang_Click" CommandArgument='<%# Eval("MaSP") %>' />

                    <asp:Label runat="server">Mua</asp:Label>
                </td>
                <td>
                    <%--  <asp:HyperLink ID="HyperLink1" NavigateUrl="~/ChiTietSanPham.aspx?masp=<%# Eval("MaSP") %>"  runat="server">Chi tiết</asp:HyperLink>--%>
                    <a href="ChiTietSanPham.aspx?masp=<%# Eval("MaSP") %>">Chi tiết</a>
                </td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
        </table>
        <br />
        <br />
    </ItemTemplate>
    <SelectedItemStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
</asp:DataList>

<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="getAllSanPham" TypeName="BO.SanPhamController"></asp:ObjectDataSource>


